package cn.stylefeng.guns.modular.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 消息学生关系表
 * </p>
 *
 * @author 
 * @since 2019-12-02
 */
@TableName("xx_class_msg_student")
public class ClassMsgStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班级通知id
     */
    @TableField("class_msg_id")
    private Integer classMsgId;

    /**
     * 学生id
     */
    @TableField("student_id")
    private Integer studentId;

    /**
     * 阅读时间
     */
    @TableField("read_time")
    private Date readTime;

    /**
     * 阅读人
     */
    @TableField("read_user_id")
    private Long readUserId;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("del_flag")
    private Boolean delFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClassMsgId() {
        return classMsgId;
    }

    public void setClassMsgId(Integer classMsgId) {
        this.classMsgId = classMsgId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    public Long getReadUserId() {
        return readUserId;
    }

    public void setReadUserId(Long readUserId) {
        this.readUserId = readUserId;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "ClassMsgStudent{" +
        "id=" + id +
        ", classMsgId=" + classMsgId +
        ", studentId=" + studentId +
        ", readTime=" + readTime +
        ", readUserId=" + readUserId +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
